<?php
App::uses('AppModel', 'Model');
App::uses('AuthComponent', 'Controller/Component');

class Region extends AppModel {
	public function findAllData(){
		return $this->find("all");
	}

	/**
	* Get region name
	* @author ThanhTran
	* @since 2014-11-10
	* @return region_name
	*/
	public function findById($region_id){
		$sql = array(
				'conditions' => array(
                        'region_id'=> $region_id
                        ),
				'fields' => array('region_name','region_id')
					);
		return $this->find('first', $sql);
	}
}
